package com.cxl.price.bean;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.summer.core.common.BeanName;
import com.summer.core.entity.BaseBean;


@Entity
@BeanName("产品 型号")
public class OtherShopPrice extends BaseBean {

	private static final long serialVersionUID = -6902794785837933768L;
	private String price;
	private Long num_iid; //淘宝num_iid
	/**
	 * 商品30天交易量，只有调用商品搜索:taobao.items.get和taobao.items.search的时候才能返回
	 */
	private Long volume;//最近30天销售量
	
	private String nicks; //卖家昵称
	
	private String detail_url;//商品地址
	
	private String title;//宝贝名称
	
	private String pic_url;//主图片
	
	private String city; //城市
	
	private String freight_payer;//是否免邮
	
	private String express_fee;//快递费用
	
	private Goods goods;


	public Long getNum_iid() {
		return num_iid;
	}

	public void setNum_iid(Long numIid) {
		num_iid = numIid;
	}

	public Long getVolume() {
		return volume;
	}

	public void setVolume(Long volume) {
		this.volume = volume;
	}

	public String getNicks() {
		return nicks;
	}

	public void setNicks(String nicks) {
		this.nicks = nicks;
	}

	public String getDetail_url() {
		return detail_url;
	}

	public void setDetail_url(String detailUrl) {
		detail_url = detailUrl;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getPic_url() {
		return pic_url;
	}

	public void setPic_url(String picUrl) {
		pic_url = picUrl;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	

	public String getFreight_payer() {
		return freight_payer;
	}

	public void setFreight_payer(String freightPayer) {
		freight_payer = freightPayer;
	}

	@ManyToOne(cascade=CascadeType.REFRESH,fetch = FetchType.LAZY)
	@JoinColumn(name = "goods_id")
	public Goods getGoods() {
		return goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	public String getExpress_fee() {
		return express_fee;
	}

	public void setExpress_fee(String expressFee) {
		express_fee = expressFee;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}
	
	

}
